package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 订单表
 * @TableName tb_order
 */
@TableName(value ="tb_order")
@Data
public class TbOrder implements Serializable {
    /**
     * 订单ID
     */
    @TableId(type = IdType.AUTO)
    private Integer orderId;

    /**
     * 订单编号
     */
    private String orderCode;

    /**
     * 订单金额
     */
    private BigDecimal amount;

    /**
     * 下单时间
     */
    private Date createTime;

    /**
     * 消费者ID
     */
    private Integer userId;

    /**
     * 产品数量
     */
    private String prodCount;

    /**
     * 订单状态：0未支付1已支付2已退款3已发货4已收货
     */
    private Integer orderStatus;
    @TableField(exist = false)
    private TbUser user;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}